﻿using System;
using System.Collections.Generic;
using System.Data;

namespace DSA4_Heldenerstellung
{
    public class Talent_C : IComparable<Talent_C>
    {
        public Talent_C(DataRow Data)
        {
            Name = Data["Name"].ToString();
            Probe = Data["Probe"].ToString();
            IstBasisTalent = Convert.ToBoolean(Data["IstBasisTalent"].ToString());
            SteigernNach = Data["SteigernNach"].ToString();
            Wert = 0;
        }

        public String Name { get; set; }

        public String Probe { get; set; }

        public Boolean IstBasisTalent { get; set; }

        public String SteigernNach { get; set; }

        public Int16 Wert { get; set; }

        public int CompareTo(Talent_C andere)
        {
            return Name.CompareTo(andere.Name);
        }
    }
}